/**
  @file
  @author Stefan Frings
*/

#pragma once

#include "src/QtWebApp/httpserver/httprequest.h"
#include "src/QtWebApp/httpserver/httpresponse.h"
#include "src/QtWebApp/httpserver/httprequesthandler.h"
#include "src/netclientjob.h"

using namespace stefanfrings;

/**
  This controller demonstrates how to use HTTP basic login.
*/

class NetListenerRequestHander : public HttpRequestHandler {
    Q_OBJECT
    Q_DISABLE_COPY(NetListenerRequestHander)
public:

    /** Constructor */
    NetListenerRequestHander(NetClientJob *clientJob, QObject *parent = nullptr);

    /** Generates the response */
    void service(HttpRequest& request, HttpResponse& response);

private:
    NetClientJob *m_clientJob;
};
